import { getComsMobx } from '../util/convert';
const { WeaForm } = getComsMobx();

import { observable, action } from 'mobx';
import { getRemindData,doRemind } from '../apis/req';

export class RemindSetStore {

    @observable form = new WeaForm();
    @observable condition = [];
    /**
     * 初始数据
     */
    @action getRemindData(para={}){
        getRemindData(para).then((reVal)=>{
            this.condition = reVal.condition;
            this.form.initFormFields(reVal.condition);
        });
    }

    /**
     * 提醒
     */
    @action doRemind(para={}){
        doRemind(para).then((reVal)=>{

        });
    }

}